﻿using System;
using BusinessBingo.Queries.Base;

namespace BusinessBingo.Queries
{
    public class GetGameQuery : BaseQuery
    {
        public GetGameQuery(string groupUrl, int gameNumber)
        {
            this.GroupUrl = groupUrl;
            this.GameNumber = gameNumber;

            this.ByGroupUrlAndGameNumber = true;
        }

        public GetGameQuery(Guid gameId)
        {
            this.GameId = gameId;

            this.ByGameId = true;
        }

        public string GroupUrl { get; private set; }
        public int GameNumber { get; private set; }

        public Guid GameId { get; private set; }

        public bool ByGroupUrlAndGameNumber { get; private set; }
        public bool ByGameId { get; private set; }
    }
}